<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<link rel="stylesheet" href="/Public/css/reset.css">
<link rel="stylesheet" href="/Public/css/adm.css">
</head>
<body>
    <header>
        <h1>Blog后台管理界面</h1>
    </header>

     <div id="main">
        <div id="lside">
            <aside>
                <h4>栏目管理</h4>
                <ul>
                    <li><a href="<?php echo U('admin/cat/catlist');?>">栏目列表</a></li>
                    <li><a href="<?php echo U('admin/cat/catadd');?>">添加栏目</a></li>
                </ul>
            </aside>
            <aside>
                <h4>文章管理</h4>
                <ul>
                    <li><a href="<?php echo U('admin/art/artlist');?>">文章列表</a></li>
                    <li><a href="<?php echo U('admin/art/artadd');?>">添加文章</a></li>
                </ul>
            </aside>
            <aside>
                <h4>怎么走？</h4>
                <ul>
                    <li><a href="<?php echo U('home/index/index');?>">首页</a></li>
                    <li><a href="<?php echo U('home/index/logout');?>">退出登陆</a></li>
                </ul>
            </aside>
        </div>

        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>日期</td>
                    <td>标题</td>
                    <td>分类</td>
                    <td>回复</td>
                    <td>状态</td>
                </tr>
            <?php if(is_array($art)): foreach($art as $key=>$value): ?><tr>
                    <td><?php echo ($value['art_id']); ?></td>
                    <td><?php echo ($value['pubtime']); ?></td>
                    <td><a href="#"><?php echo ($value['title']); ?></a></td>
                    <td><?php echo ($value['cat_id']); ?></td>
                    <td><span class="badge">xxx</span></td>
                    <td><a href="<?php echo U('admin/art/artdel',array('art_id'=>$value['art_id']));?>">删除</a>
                        |
                        <a href="<?php echo U('admin/art/artupdate',array('art_id'=>$value['art_id']));?>">修改</a>
                    </td>
                </tr><?php endforeach; endif; ?>
            </table>
            <div id="pagebar">
                Pages:&nbsp;
                <a href="#">1</a>
                <a href="#">2</a>
                <a href="#">3</a>
                4
                <a href="#">5</a>
                <a href="#">6</a>
            </div>
        </div>
    </div>
    <footer>
        Copyright &copy; 2015 · GeneratePress · WordPress
    </footer>
</body>
</html>